// vue.config.js
module.exports = {
  devServer: {
    // open: true,
    // host: "localhost",
    port: '80',
    // https: false,
    // hotOnly: false,
    disableHostCheck: true,
    proxy: {
      '/WXJGSApi': {
        target: 'https://examcs.cabplink.com/jiangongshe',
        ws: true,  //代理websockets
        changeOrigin: true, // 虚拟的站点需要更管origin
        pathRewrite: {
          '^/WXJGSApi': ''
        }
      },
    },
  },
}